package com.es.esapi.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Doc_res implements Comparable<Doc_res> {
    String doc_id;
    double score;
    Integer favour_times;
    Integer click_times;
    double res_score;
    String doc_location;

    @Override
    public int compareTo(Doc_res doc_res) {
        return (int) (doc_res.getRes_score() - this.res_score);
    }

}
